View Issue Details

IDProjectCategoryView StatusLast Update
0001830T99X171.00 SKB EagleSW Issuepublic2024-02-08 10:17
Reporter(ALTech) Younkwang Jung Assigned To(ALTech) Younkwang Jung Due Date
PrioritynormalSeveritys4-minorReproducibilityhave not tried
Status closedResolutionfixed 
Summary0001830: [Smart3][OS12] [VoC] Review VoC issue about talkback
DescriptionHi Jason

The customer's Smart3 STB's talkback has been activated
When this feature is enabled, it is difficult for the user to use STB (VoC)
and user can hardly disable it.
https://jira.skbroadband.com/browse/BPM-24989

If you have any ideas on how to disable the talkback to reduce the VoC , please share it.

Thank you
YK.Jung
TagsNo tags attached.
Attach Tags

Users monitoring this issue

User List (ALTech) JunGyu Kim , (ALTech) SY Yoon , (SW) Jason Ling , (SW) Sam Yang

Activities

(SW) Jason Ling

2023-11-09 19:38

developer   ~0014504

Hi YK,

I don't know when the user enabled talkback.
As far as I know, if user long press "back" in step wizard. the talkback will be triggered.

we have one turnoff-talkback patch in other project.
if talkback is enabled during setup flow, we will turn off it in the final step of Setupwizard.

Please refer to turnoff-talkback.patch (it's for ATV12)
Apply folder vendor/amlogic/common

Thanks,
Jason

(SW) Jason Ling

2023-11-09 19:38

developer   ~0014505

turnoff-talkback.patch (2,594 bytes)   
diff --git a/prebuilt/LeanbackCustomizer/AndroidManifest.xml b/prebuilt/LeanbackCustomizer/AndroidManifest.xml
index 2fe61e5..b767262 100644
--- a/prebuilt/LeanbackCustomizer/AndroidManifest.xml
+++ b/prebuilt/LeanbackCustomizer/AndroidManifest.xml
@@ -3,7 +3,7 @@
     package="com.vasott.leanbacklauncher.partnercustomizer"
     android:persistent="true"
     android:versionCode="4"
-    android:versionName="1.0.3"
+    android:versionName="1.0.4"
     android:sharedUserId="android.uid.system"
     xmlns:tools="http://schemas.android.com/tools">
 
diff --git a/prebuilt/LeanbackCustomizer/src/com/vasott/leanbacklauncher/partnercustomizer/CompleteSetupActivity.java b/prebuilt/LeanbackCustomizer/src/com/vasott/leanbacklauncher/partnercustomizer/CompleteSetupActivity.java
index 3760bed..6ee5df0 100644
--- a/prebuilt/LeanbackCustomizer/src/com/vasott/leanbacklauncher/partnercustomizer/CompleteSetupActivity.java
+++ b/prebuilt/LeanbackCustomizer/src/com/vasott/leanbacklauncher/partnercustomizer/CompleteSetupActivity.java
@@ -4,16 +4,41 @@ import android.app.Activity;
 import android.app.AlarmManager;
 import android.content.Context;
 import android.os.Bundle;
+import android.provider.Settings;
 import android.util.Log;
 
-
 public class CompleteSetupActivity extends Activity {
+    private final static String TAG = "CompleteSetupActivity";
+
     @Override
     protected void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         AlarmManager am = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
         am.setTimeZone("Asia/Seoul");
+        turnOffTalkback(this);
         setResult(RESULT_OK);
         finish();
     }
+
+    @Override
+    protected void onDestroy() {
+        super.onDestroy();
+        Log.d(TAG,"onDestroy!");
+    }
+
+    private static void turnOffTalkback(Context context) {
+        if (context.getContentResolver() == null) {
+            Log.v(TAG, "Ignore check talkback, getContentResolver() is null.");
+            return;
+        }
+
+        final boolean accessibilityEnabled = Settings.Secure.getInt(context.getContentResolver(), Settings.Secure.ACCESSIBILITY_ENABLED, 0) == 1;
+        Log.v(TAG, "Check talkback is enable " + accessibilityEnabled);
+        if (accessibilityEnabled) {
+            Log.v(TAG, "Disable talkback !");
+            Settings.Secure.putInt(context.getContentResolver(), Settings.Secure.ACCESSIBILITY_ENABLED, 0);
+            Settings.Secure.putString(context.getContentResolver(), Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, "");
+        }
+    }
+
 }
turnoff-talkback.patch (2,594 bytes)   

(ALTech) Younkwang Jung

2023-11-13 15:00

developer   ~0014515

Hi Jason

if the user has talkback enabled.
Is it possible to forcibly disable talkback after when reboots (plug power off/on) ?

===========================================================================================================
https://stackoverflow.com/questions/42197145/talkback-is-not-getting-enabled-through-adb-shell
// disable
adb shell settings put secure enabled_accessibility_services com.android.talkback/com.google.android.marvin.talkback.TalkBackService
// enable
adb shell settings put secure enabled_accessibility_services com.google.android.marvin.talkback/com.google.android.marvin.talkback.TalkBackService
===========================================================================================================

Thank you
YK.Jung

(SW) Jason Ling

2023-11-13 15:27

developer   ~0014516

Hi YK,

How to know if talked is enabled based on user intent?
if user want to use talkback, after reboot, we turn off it, can user accept it ?

Thanks,
Jason

(ALTech) Younkwang Jung

2023-11-14 09:08

developer   ~0014524

Hi jason

SKB does not want the talkback function.
To summarize, SKB wants the following two function.
https://jira.skbroadband.com/browse/BPM-25263

1) if talkback is enabled during setup flow, we will turn off it in the final step of Setupwizard.
2) disable talkback after reboot
    ( SKB want the same way that the energy-saving mode is automatically disabled after rebooting. )

When these two functions are ready, please send us a test FW (UI537)
And there will be a UI537 new FW build this week and should be included in it.
Please support it quickly

Thanks
YK.Jung

(SW) Sam Yang

2023-11-14 18:16

developer   ~0014539

Hi Younkwang,

Please verify with the test FW: release_by_fxn/smart3_test/Mantis1830/usb_bfx-at100_V15.537.71.zip
This FW provide that disable talkback function after rebooting.

Thanks~
Sam

(ALTech) Younkwang Jung

2023-11-15 11:41

developer   ~0014546

Hi Jason / Sam

>> Please verify with the test FW: release_by_fxn/smart3_test/Mantis1830/usb_bfx-at100_V15.537.71.zip
>> This FW provide that disable talkback function after rebooting.
I checked that it's ok

And I'll give you feedback after the meeting
Maybe these two patches will be applied to this UI537

Thank you
YK.Jung

(ALTech) Younkwang Jung

2023-11-15 14:06

developer   ~0014548

Hi Jason/Sam

>> 1) if talkback is enabled during setup flow, we will turn off it in the final step of Setupwizard.
>> 2) disable talkback after reboot
>> ( SKB want the same way that the energy-saving mode is automatically disabled after rebooting. )

Please apply these two patches to UI537 and use BPM-25263 (jira id) for push
https://jira.skbroadband.com/browse/BPM-25263

Please let me know when you're done

Thank you
YK.Jung

(SW) Sam Yang

2023-11-15 16:36

developer   ~0014549

Hi Younkwang,

Done, the commits are:
2023-11-15 16:19:43 | sam.cy.yang@mail.f.. | 1bfbe1fb | vendor/amlogic/common | [BPM-25263] Close talkback when reboot(1830)
2023-11-14 16:43:31 | sam.cy.yang@mail.f.. | 19a33fe | vendor/foxconn | [BPM-25263] Close talkback when reboot(1830)

Thanks~
Sam

(ALTech) Younkwang Jung

2024-02-08 10:17

developer   ~0015108

Hi Sam

Thank you for applying it.
I will close this ticket

Thank you
YK.Jung

Issue History

Date Modified Username Field Change
2023-11-09 17:56 (ALTech) Younkwang Jung New Issue
2023-11-09 17:56 (ALTech) Younkwang Jung Status new => assigned
2023-11-09 17:56 (ALTech) Younkwang Jung Assigned To => (SW) Jason Ling
2023-11-09 17:56 (ALTech) Younkwang Jung Summary [Smart3][OS12] [VoC] Review VoC issues for talkback => [Smart3][OS12] [VoC] Review VoC issue about talkback
2023-11-09 17:57 (ALTech) Younkwang Jung Issue Monitored: (ALTech) SY Yoon
2023-11-09 17:57 (ALTech) Younkwang Jung Issue Monitored: (ALTech) JunGyu Kim
2023-11-09 19:38 (SW) Jason Ling Assigned To (SW) Jason Ling => (ALTech) Younkwang Jung
2023-11-09 19:38 (SW) Jason Ling Severity s2-severe => s4-minor
2023-11-09 19:38 (SW) Jason Ling Note Added: 0014504
2023-11-09 19:38 (SW) Jason Ling Note Added: 0014505
2023-11-09 19:38 (SW) Jason Ling File Added: turnoff-talkback.patch
2023-11-13 15:00 (ALTech) Younkwang Jung Note Added: 0014515
2023-11-13 15:27 (SW) Jason Ling Note Added: 0014516
2023-11-14 09:08 (ALTech) Younkwang Jung Note Added: 0014524
2023-11-14 10:14 (SW) Jason Ling Assigned To (ALTech) Younkwang Jung => (SW) Sam Yang
2023-11-14 10:15 (SW) Jason Ling Issue Monitored: (SW) Jason Ling
2023-11-14 18:16 (SW) Sam Yang Note Added: 0014539
2023-11-14 19:08 (SW) Sam Yang Issue Monitored: (SW) Sam Yang
2023-11-14 19:09 (SW) Sam Yang Assigned To (SW) Sam Yang => (ALTech) Younkwang Jung
2023-11-14 19:09 (SW) Sam Yang Status assigned => feedback
2023-11-15 11:41 (ALTech) Younkwang Jung Note Added: 0014546
2023-11-15 14:06 (ALTech) Younkwang Jung Note Added: 0014548
2023-11-15 16:36 (SW) Sam Yang Note Added: 0014549
2024-02-08 10:17 (ALTech) Younkwang Jung Note Added: 0015108
2024-02-08 10:17 (ALTech) Younkwang Jung Status feedback => closed
2024-02-08 10:17 (ALTech) Younkwang Jung Resolution open => fixed